<div class="navbar">
<table style="margin:0px;padding:0px"><tr><td>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page import="com.google.appengine.api.users.*"%>
<%
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
%>
<a href='http://dysnomia-demo.appspot.com'><img border='0' class="logo" src='../images/logo.png' width='120' height='60' alt='Logo' style='float:left'/></a>
</td><td width="80%">
<% if (user != null) { %>
Sveicināti, <%= user.getNickname() %>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="<%= userService.createLogoutURL("../simple/index.html") %>"><fmt:message key="log.out"/></a><br />
<% } else { %>
<a href="<%= userService.createLoginURL("../simple/index.html") %>"><fmt:message key="log.in"/></a><br />
<% } %>
<a href="../simple/index.html"><fmt:message key="homepage"/></a>&nbsp;&nbsp;
<a href="../simple/all-songs.html"><fmt:message key="allsongs.title"/></a>&nbsp;&nbsp;
<a href="../simple/books.html"><fmt:message key="books.title"/></a>&nbsp;&nbsp;
<a href="../simple/sources.html"><fmt:message key="sources.title"/></a>&nbsp;&nbsp;
<% if (user != null && userService.isUserAdmin()) { %> 
<a href="../admin/index.html"><fmt:message key="admin.title"/></a>&nbsp;&nbsp;
<% } %>
</td>
<c:out value="${pickLanguage}" escapeXml="false" />
</tr>
</table>
</div>